﻿namespace ACCOUNTING
{
    using ACCOUNTING.LVY.Business;
    using ACCOUNTING.My;
    using ACCOUNTING.My.Resources;
    using C1.Win.C1FlexGrid;
    using C1.Win.C1FlexGrid.Util.BaseControls;
    using C1.Win.C1Input;
    using Microsoft.VisualBasic;
    using Microsoft.VisualBasic.CompilerServices;
    using System;
    using System.Collections;
    using System.Collections.Generic;
    using System.ComponentModel;
    using System.Data;
    using System.Diagnostics;
    using System.Drawing;
    using System.Runtime.CompilerServices;
    using System.Windows.Forms;

    [DesignerGenerated]
    public class Frm_PhieuChiList : Form
    {
        private static List<WeakReference> __ENCList = new List<WeakReference>();
        [AccessedThroughProperty("AdvDoiTuong")]
        private ADVObjects _AdvDoiTuong;
        [AccessedThroughProperty("AdvTaiKhoan")]
        private ADVAccount _AdvTaiKhoan;
        [AccessedThroughProperty("CboDonVi")]
        private ComboBox _CboDonVi;
        [AccessedThroughProperty("CboKhoanMucChiPhi")]
        private ComboBox _CboKhoanMucChiPhi;
        [AccessedThroughProperty("CboLoaiDoiTuong")]
        private ComboBox _CboLoaiDoiTuong;
        [AccessedThroughProperty("CmdAdd")]
        private ToolStripButton _CmdAdd;
        [AccessedThroughProperty("CmdDel")]
        private ToolStripButton _CmdDel;
        [AccessedThroughProperty("CmdExit")]
        private ToolStripButton _CmdExit;
        [AccessedThroughProperty("CmdHelp")]
        private ToolStripButton _CmdHelp;
        [AccessedThroughProperty("CmdPrint")]
        private ToolStripDropDownButton _CmdPrint;
        [AccessedThroughProperty("CmdPrintChiTiet")]
        private ToolStripMenuItem _CmdPrintChiTiet;
        [AccessedThroughProperty("CmdPrintTongHop")]
        private ToolStripMenuItem _CmdPrintTongHop;
        [AccessedThroughProperty("CmdRefresh")]
        private ToolStripButton _CmdRefresh;
        [AccessedThroughProperty("Label1")]
        private Label _Label1;
        [AccessedThroughProperty("Label13")]
        private Label _Label13;
        [AccessedThroughProperty("Label2")]
        private Label _Label2;
        [AccessedThroughProperty("Label3")]
        private Label _Label3;
        [AccessedThroughProperty("Label4")]
        private Label _Label4;
        [AccessedThroughProperty("Label5")]
        private Label _Label5;
        [AccessedThroughProperty("Label6")]
        private Label _Label6;
        [AccessedThroughProperty("Label7")]
        private Label _Label7;
        [AccessedThroughProperty("Label8")]
        private Label _Label8;
        [AccessedThroughProperty("Label9")]
        private Label _Label9;
        [AccessedThroughProperty("Panel1")]
        private Panel _Panel1;
        [AccessedThroughProperty("Panel2")]
        private Panel _Panel2;
        [AccessedThroughProperty("ToolStrip1")]
        private ToolStrip _ToolStrip1;
        [AccessedThroughProperty("ToolStripButton1")]
        private ToolStripSeparator _ToolStripButton1;
        [AccessedThroughProperty("ToolStripLabel1")]
        private ToolStripLabel _ToolStripLabel1;
        [AccessedThroughProperty("ToolStripSeparator1")]
        private ToolStripSeparator _ToolStripSeparator1;
        [AccessedThroughProperty("ToolStripSeparator2")]
        private ToolStripSeparator _ToolStripSeparator2;
        [AccessedThroughProperty("ToolStripSeparator3")]
        private ToolStripSeparator _ToolStripSeparator3;
        [AccessedThroughProperty("TxtChungTuGoc")]
        private TextBox _TxtChungTuGoc;
        [AccessedThroughProperty("TxtDenNgay")]
        private DateTimePicker _TxtDenNgay;
        [AccessedThroughProperty("TxtDienGiai")]
        private TextBox _TxtDienGiai;
        [AccessedThroughProperty("TxtDoiTuong")]
        private TextBox _TxtDoiTuong;
        [AccessedThroughProperty("TxtSoTien")]
        private C1NumericEdit _TxtSoTien;
        [AccessedThroughProperty("TxtSoTienNT")]
        private C1NumericEdit _TxtSoTienNT;
        [AccessedThroughProperty("TxtTimSoChungTu")]
        private TextBox _TxtTimSoChungTu;
        [AccessedThroughProperty("TxtTuNgay")]
        private DateTimePicker _TxtTuNgay;
        [AccessedThroughProperty("VSlist")]
        private C1.Win.C1FlexGrid.C1FlexGrid _VSlist;
        private IContainer components;
        private bool mAllowAdd;
        private bool mAllowDel;
        private bool mAllowEdit;
        private bool mAllowView;
        private DataView objData;
        private clsChungTuQuy objPT;

        public Frm_PhieuChiList()
        {
            base.Load += new EventHandler(this.Frm_PhieuThuList_Load);
            base.KeyDown += new KeyEventHandler(this.Frm_PhieuChiList_KeyDown);
            List<WeakReference> list = __ENCList;
            lock (list)
            {
                __ENCList.Add(new WeakReference(this));
            }
            this.objPT = new clsChungTuQuy();
            this.InitializeComponent();
        }

        private void CboLoaiDoiTuong_SelectedIndexChanged(object sender, EventArgs e)
        {
            switch (this.CboLoaiDoiTuong.SelectedIndex)
            {
                case 0:
                    this.AdvDoiTuong.LoaiDoiTuong = modGeneral.TypeObjects.NhaCungCap;
                    break;

                case 1:
                    this.AdvDoiTuong.LoaiDoiTuong = modGeneral.TypeObjects.KhachHang;
                    break;

                case 2:
                    this.AdvDoiTuong.LoaiDoiTuong = modGeneral.TypeObjects.NhanVien;
                    break;

                case 3:
                    this.AdvDoiTuong.LoaiDoiTuong = modGeneral.TypeObjects.NganHang;
                    break;
            }
        }

        private void CmdAdd_Click(object sender, EventArgs e)
        {
            MyProject.Forms.Frm_PhieuChi.Dispose();
            MyProject.Forms.Frm_PhieuChi.cFrmKhoa = "";
            MyProject.Forms.Frm_PhieuChi.Show();
        }

        private void CmdDel_Click(object sender, EventArgs e)
        {
            if (((this.VSlist.Rows.Count != 1) && (this.VSlist.Row > 0)) && (LVYModule.ConfirmDelete("") && this.objPT.DeleteData(Conversions.ToString(this.VSlist[this.VSlist.Row, 0]), 0)))
            {
                this.VSlist.RemoveItem(this.VSlist.Row);
            }
        }

        private void CmdHelp_Click(object sender, EventArgs e)
        {
        }

        private void CmdPrintChiTiet_Click(object sender, EventArgs e)
        {
            if ((this.VSlist.Rows.Count != 1) && (this.VSlist.Row > 0))
            {
                ReportModule.PrintPhieuChi(Conversions.ToString(this.VSlist[this.VSlist.Row, 0]));
            }
        }

        private void CmdPrintTongHop_Click(object sender, EventArgs e)
        {
            if ((this.VSlist.Rows.Count != 1) && (this.VSlist.Row > 0))
            {
                ReportModule.PrintPhieuChiTH(Conversions.ToString(this.VSlist[this.VSlist.Row, 0]));
            }
        }

        private void CmdRefresh_Click(object sender, EventArgs e)
        {
            this.VSlist.Focus();
            this.LoadData();
        }

        [DebuggerNonUserCode]
        protected override void Dispose(bool disposing)
        {
            if (disposing && (this.components != null))
            {
                this.components.Dispose();
            }
            base.Dispose(disposing);
        }

        private void Frm_PhieuChiList_KeyDown(object sender, KeyEventArgs e)
        {
            Keys keyCode = e.KeyCode;
            if (keyCode == Keys.Escape)
            {
                this.Dispose();
            }
            else if (keyCode == Keys.F1)
            {
                this.CmdHelp_Click(RuntimeHelpers.GetObjectValue(sender), e);
            }
            else if (keyCode == Keys.F5)
            {
                this.LoadData();
            }
            else if (keyCode == Keys.F8)
            {
                if (this.CmdAdd.Enabled)
                {
                    this.CmdAdd_Click(RuntimeHelpers.GetObjectValue(sender), e);
                }
            }
            else if (keyCode == Keys.F9)
            {
                if (this.CmdDel.Enabled)
                {
                    this.CmdDel_Click(RuntimeHelpers.GetObjectValue(sender), e);
                }
            }
            else if ((keyCode == Keys.F12) && this.CmdPrint.Enabled)
            {
                this.CmdPrintTongHop_Click(RuntimeHelpers.GetObjectValue(sender), e);
            }
        }

        private void Frm_PhieuThuList_Load(object sender, EventArgs e)
        {
            LVYModule.GetUserRight(ref this.mAllowView, ref this.mAllowDel, ref this.mAllowEdit, ref this.mAllowAdd, Conversions.ToString(this.Tag), modGeneral.H_USERNAME);
            if (!this.mAllowView)
            {
                LVYModule.ShowWarning(modGeneral.Tranlated("Bạn kh\x00f4ng c\x00f3 quyền xem, li\x00ean hệ với người quản trị để biết th\x00eam chi tiết.", ""));
                this.Dispose();
            }
            else
            {
                this.CmdAdd.Enabled = this.mAllowAdd;
                this.CmdDel.Enabled = this.mAllowDel;
                this.TxtTuNgay.Text = "01/" + LVYModule.sRight("00" + Conversions.ToString(DateAndTime.Month(DateAndTime.Today)), 2) + "/" + Conversions.ToString(DateAndTime.Year(DateAndTime.Today));
                BuildComboModule.BuildCombo(this.CboDonVi, modGeneral.ListDanhMuc.DonVi, true, "", "");
                BuildComboModule.BuildCombo(this.CboKhoanMucChiPhi, modGeneral.ListDanhMuc.KhoanMucChiPhi, true, "", "");
                this.CboLoaiDoiTuong.Items.Clear();
                this.CboLoaiDoiTuong.Items.Add(modGeneral.Tranlated("Nh\x00e0 cung cấp", ""));
                this.CboLoaiDoiTuong.Items.Add(modGeneral.Tranlated("Kh\x00e1ch h\x00e0ng", ""));
                this.CboLoaiDoiTuong.Items.Add(modGeneral.Tranlated("Nh\x00e2n vi\x00ean", ""));
                this.CboLoaiDoiTuong.Items.Add(modGeneral.Tranlated("Ng\x00e2n h\x00e0ng", ""));
                this.CboLoaiDoiTuong.SelectedIndex = 0;
                this.AdvDoiTuong.LoaiDoiTuong = modGeneral.TypeObjects.NhaCungCap;
                this.CboDonVi.SelectedValue = modGeneral.H_CLIENT;
                LVYModule.advFormatNumber(this.TxtSoTienNT, modGeneral.H_FORMATNUMBER + ".00");
                LVYModule.advFormatNumber(this.TxtSoTien, modGeneral.H_FORMATNUMBER);
                this.LoadData();
            }
        }

        [DebuggerStepThrough]
        private void InitializeComponent()
        {
            ComponentResourceManager manager = new ComponentResourceManager(typeof(Frm_PhieuChiList));
            this.CmdAdd = new ToolStripButton();
            this.VSlist = new C1.Win.C1FlexGrid.C1FlexGrid();
            this.CmdHelp = new ToolStripButton();
            this.CmdRefresh = new ToolStripButton();
            this.CmdExit = new ToolStripButton();
            this.Panel1 = new Panel();
            this.CboKhoanMucChiPhi = new ComboBox();
            this.Label4 = new Label();
            this.AdvTaiKhoan = new ADVAccount();
            this.Label3 = new Label();
            this.Label2 = new Label();
            this.AdvDoiTuong = new ADVObjects();
            this.Label1 = new Label();
            this.TxtDenNgay = new DateTimePicker();
            this.Label13 = new Label();
            this.TxtTuNgay = new DateTimePicker();
            this.CmdDel = new ToolStripButton();
            this.ToolStripButton1 = new ToolStripSeparator();
            this.ToolStrip1 = new ToolStrip();
            this.ToolStripSeparator2 = new ToolStripSeparator();
            this.CmdPrint = new ToolStripDropDownButton();
            this.CmdPrintTongHop = new ToolStripMenuItem();
            this.CmdPrintChiTiet = new ToolStripMenuItem();
            this.ToolStripSeparator3 = new ToolStripSeparator();
            this.ToolStripSeparator1 = new ToolStripSeparator();
            this.ToolStripLabel1 = new ToolStripLabel();
            this.Panel2 = new Panel();
            this.Label8 = new Label();
            this.TxtDienGiai = new TextBox();
            this.Label7 = new Label();
            this.TxtDoiTuong = new TextBox();
            this.Label6 = new Label();
            this.TxtChungTuGoc = new TextBox();
            this.Label9 = new Label();
            this.TxtTimSoChungTu = new TextBox();
            this.TxtSoTien = new C1NumericEdit();
            this.TxtSoTienNT = new C1NumericEdit();
            this.Label5 = new Label();
            this.CboDonVi = new ComboBox();
            this.CboLoaiDoiTuong = new ComboBox();
            this.VSlist.BeginInit();
            this.Panel1.SuspendLayout();
            this.ToolStrip1.SuspendLayout();
            this.Panel2.SuspendLayout();
            ((ISupportInitialize) this.TxtSoTien).BeginInit();
            ((ISupportInitialize) this.TxtSoTienNT).BeginInit();
            this.SuspendLayout();
            this.CmdAdd.Image = (Image) manager.GetObject("CmdAdd.Image");
            this.CmdAdd.ImageTransparentColor = Color.White;
            this.CmdAdd.Name = "CmdAdd";
            Size size = new Size(0x52, 0x16);
            this.CmdAdd.Size = size;
            this.CmdAdd.Text = "&Th\x00eam mới";
            this.CmdAdd.ToolTipText = "F8 Th\x00eam mới phiếu chi";
            this.VSlist.AllowEditing = false;
            this.VSlist.BorderStyle = C1.Win.C1FlexGrid.Util.BaseControls.BorderStyleEnum.XpThemes;
            this.VSlist.ColumnInfo = manager.GetString("VSlist.ColumnInfo");
            this.VSlist.Dock = DockStyle.Fill;
            this.VSlist.ExtendLastCol = true;
            this.VSlist.FocusRect = FocusRectEnum.None;
            this.VSlist.KeyActionEnter = KeyActionEnum.MoveAcross;
            Point point = new Point(0, 0x51);
            this.VSlist.Location = point;
            this.VSlist.Name = "VSlist";
            this.VSlist.Rows.Count = 1;
            this.VSlist.Rows.DefaultSize = 0x11;
            this.VSlist.SelectionMode = SelectionModeEnum.Row;
            size = new Size(0x37e, 0x1aa);
            this.VSlist.Size = size;
            this.VSlist.StyleInfo = manager.GetString("VSlist.StyleInfo");
            this.VSlist.TabIndex = 0x18;
            this.VSlist.VisualStyle = C1.Win.C1FlexGrid.VisualStyle.Office2007Blue;
            this.CmdHelp.Alignment = ToolStripItemAlignment.Right;
            this.CmdHelp.Image = (Image) manager.GetObject("CmdHelp.Image");
            this.CmdHelp.ImageTransparentColor = Color.Magenta;
            this.CmdHelp.Name = "CmdHelp";
            size = new Size(0x34, 0x16);
            this.CmdHelp.Size = size;
            this.CmdHelp.Text = "&Help";
            this.CmdRefresh.Image = (Image) manager.GetObject("CmdRefresh.Image");
            this.CmdRefresh.ImageTransparentColor = Color.White;
            this.CmdRefresh.Name = "CmdRefresh";
            size = new Size(0x42, 0x16);
            this.CmdRefresh.Size = size;
            this.CmdRefresh.Text = "Refresh";
            this.CmdRefresh.ToolTipText = "F5 Load lại dữ liệu";
            this.CmdExit.Alignment = ToolStripItemAlignment.Right;
            this.CmdExit.Image = (Image) manager.GetObject("CmdExit.Image");
            this.CmdExit.ImageTransparentColor = Color.White;
            this.CmdExit.Name = "CmdExit";
            size = new Size(0x3a, 0x16);
            this.CmdExit.Size = size;
            this.CmdExit.Text = "Th&o\x00e1t";
            this.CmdExit.Visible = false;
            this.Panel1.BackgroundImage = ACCOUNTING.My.Resources.Resources.bgleft;
            this.Panel1.Controls.Add(this.CboKhoanMucChiPhi);
            this.Panel1.Controls.Add(this.Label4);
            this.Panel1.Controls.Add(this.AdvTaiKhoan);
            this.Panel1.Controls.Add(this.Label3);
            this.Panel1.Controls.Add(this.Label2);
            this.Panel1.Controls.Add(this.AdvDoiTuong);
            this.Panel1.Controls.Add(this.Label1);
            this.Panel1.Controls.Add(this.TxtDenNgay);
            this.Panel1.Controls.Add(this.Label13);
            this.Panel1.Controls.Add(this.TxtTuNgay);
            this.Panel1.Dock = DockStyle.Top;
            point = new Point(0, 0x19);
            this.Panel1.Location = point;
            this.Panel1.Name = "Panel1";
            size = new Size(0x37e, 0x38);
            this.Panel1.Size = size;
            this.Panel1.TabIndex = 0x17;
            this.CboKhoanMucChiPhi.DropDownStyle = ComboBoxStyle.DropDownList;
            this.CboKhoanMucChiPhi.FormattingEnabled = true;
            point = new Point(0x1d2, 30);
            this.CboKhoanMucChiPhi.Location = point;
            this.CboKhoanMucChiPhi.Name = "CboKhoanMucChiPhi";
            size = new Size(0x117, 0x15);
            this.CboKhoanMucChiPhi.Size = size;
            this.CboKhoanMucChiPhi.TabIndex = 0x8e;
            this.Label4.AutoSize = true;
            this.Label4.BackColor = Color.Transparent;
            point = new Point(0x180, 9);
            this.Label4.Location = point;
            this.Label4.Name = "Label4";
            size = new Size(0x49, 13);
            this.Label4.Size = size;
            this.Label4.TabIndex = 70;
            this.Label4.Text = "T\x00e0i khoản đối";
            this.AdvTaiKhoan.Conditions = "";
            this.AdvTaiKhoan.DefaultValue = "";
            this.AdvTaiKhoan.FieldNameFilter = "";
            this.AdvTaiKhoan.KeyFilter = "";
            point = new Point(0x1d2, 5);
            this.AdvTaiKhoan.Location = point;
            Padding padding = new Padding(0);
            this.AdvTaiKhoan.Margin = padding;
            this.AdvTaiKhoan.Name = "AdvTaiKhoan";
            this.AdvTaiKhoan.OnlyDigit = false;
            this.AdvTaiKhoan.ReadOnly = false;
            size = new Size(0x117, 20);
            this.AdvTaiKhoan.Size = size;
            this.AdvTaiKhoan.TabIndex = 0x45;
            this.AdvTaiKhoan.UpperText = true;
            this.AdvTaiKhoan.Value = "";
            this.AdvTaiKhoan.WithCode = 80;
            this.Label3.AutoSize = true;
            this.Label3.BackColor = Color.Transparent;
            point = new Point(0x180, 0x22);
            this.Label3.Location = point;
            this.Label3.Name = "Label3";
            size = new Size(0x3d, 13);
            this.Label3.Size = size;
            this.Label3.TabIndex = 0x43;
            this.Label3.Text = "Khoản mục";
            this.Label2.AutoSize = true;
            this.Label2.BackColor = Color.Transparent;
            point = new Point(11, 0x22);
            this.Label2.Location = point;
            this.Label2.Name = "Label2";
            size = new Size(0x35, 13);
            this.Label2.Size = size;
            this.Label2.TabIndex = 0x41;
            this.Label2.Text = "Đối tượng";
            this.AdvDoiTuong.Conditions = "";
            this.AdvDoiTuong.LoaiDoiTuong = modGeneral.TypeObjects.TatCa;
            point = new Point(0x59, 30);
            this.AdvDoiTuong.Location = point;
            this.AdvDoiTuong.Name = "AdvDoiTuong";
            this.AdvDoiTuong.ReadOnly = false;
            size = new Size(0x11e, 20);
            this.AdvDoiTuong.Size = size;
            this.AdvDoiTuong.TabIndex = 0x40;
            this.AdvDoiTuong.UpperText = true;
            this.AdvDoiTuong.Value = "";
            this.AdvDoiTuong.WidthCode = 80;
            this.Label1.AutoSize = true;
            this.Label1.BackColor = Color.Transparent;
            point = new Point(0xcf, 8);
            this.Label1.Location = point;
            this.Label1.Name = "Label1";
            size = new Size(0x35, 13);
            this.Label1.Size = size;
            this.Label1.TabIndex = 0x3f;
            this.Label1.Text = "Đến ng\x00e0y";
            this.TxtDenNgay.Format = DateTimePickerFormat.Custom;
            point = new Point(0x116, 5);
            this.TxtDenNgay.Location = point;
            this.TxtDenNgay.Name = "TxtDenNgay";
            size = new Size(0x61, 20);
            this.TxtDenNgay.Size = size;
            this.TxtDenNgay.TabIndex = 0x3e;
            this.Label13.AutoSize = true;
            this.Label13.BackColor = Color.Transparent;
            point = new Point(10, 8);
            this.Label13.Location = point;
            this.Label13.Name = "Label13";
            size = new Size(0x2e, 13);
            this.Label13.Size = size;
            this.Label13.TabIndex = 0x3d;
            this.Label13.Text = "Từ ng\x00e0y";
            this.TxtTuNgay.Format = DateTimePickerFormat.Custom;
            point = new Point(0x59, 5);
            this.TxtTuNgay.Location = point;
            this.TxtTuNgay.Name = "TxtTuNgay";
            size = new Size(0x63, 20);
            this.TxtTuNgay.Size = size;
            this.TxtTuNgay.TabIndex = 60;
            this.CmdDel.Image = (Image) manager.GetObject("CmdDel.Image");
            this.CmdDel.ImageTransparentColor = Color.White;
            this.CmdDel.Name = "CmdDel";
            size = new Size(0x2f, 0x16);
            this.CmdDel.Size = size;
            this.CmdDel.Text = "&X\x00f3a";
            this.CmdDel.ToolTipText = "F9 X\x00f3a phiếu chi đang chọn";
            this.ToolStripButton1.Name = "ToolStripButton1";
            size = new Size(6, 0x19);
            this.ToolStripButton1.Size = size;
            this.ToolStrip1.BackgroundImage = ACCOUNTING.My.Resources.Resources.bgbluenoborder;
            this.ToolStrip1.Items.AddRange(new ToolStripItem[] { this.CmdAdd, this.ToolStripSeparator2, this.CmdPrint, this.ToolStripButton1, this.CmdDel, this.ToolStripSeparator3, this.CmdExit, this.CmdHelp, this.CmdRefresh, this.ToolStripSeparator1, this.ToolStripLabel1 });
            point = new Point(0, 0);
            this.ToolStrip1.Location = point;
            this.ToolStrip1.Name = "ToolStrip1";
            size = new Size(0x37e, 0x19);
            this.ToolStrip1.Size = size;
            this.ToolStrip1.TabIndex = 0x16;
            this.ToolStrip1.Text = "ToolStrip1";
            this.ToolStripSeparator2.Name = "ToolStripSeparator2";
            size = new Size(6, 0x19);
            this.ToolStripSeparator2.Size = size;
            this.CmdPrint.DropDownItems.AddRange(new ToolStripItem[] { this.CmdPrintTongHop, this.CmdPrintChiTiet });
            this.CmdPrint.Image = (Image) manager.GetObject("CmdPrint.Image");
            this.CmdPrint.ImageTransparentColor = Color.White;
            this.CmdPrint.Name = "CmdPrint";
            size = new Size(0x2e, 0x16);
            this.CmdPrint.Size = size;
            this.CmdPrint.Text = "&In";
            this.CmdPrint.ToolTipText = "F12 In phiếu chi đang chọn";
            this.CmdPrintTongHop.Name = "CmdPrintTongHop";
            size = new Size(0x7e, 0x16);
            this.CmdPrintTongHop.Size = size;
            this.CmdPrintTongHop.Text = "Tổng hợp";
            this.CmdPrintChiTiet.Name = "CmdPrintChiTiet";
            size = new Size(0x7e, 0x16);
            this.CmdPrintChiTiet.Size = size;
            this.CmdPrintChiTiet.Text = "Chi tiết";
            this.ToolStripSeparator3.Name = "ToolStripSeparator3";
            size = new Size(6, 0x19);
            this.ToolStripSeparator3.Size = size;
            this.ToolStripSeparator1.Name = "ToolStripSeparator1";
            size = new Size(6, 0x19);
            this.ToolStripSeparator1.Size = size;
            this.ToolStripLabel1.Name = "ToolStripLabel1";
            size = new Size(0x29, 0x16);
            this.ToolStripLabel1.Size = size;
            this.ToolStripLabel1.Text = "Đơn vị";
            this.Panel2.BackgroundImage = ACCOUNTING.My.Resources.Resources.bgleft;
            this.Panel2.Controls.Add(this.Label8);
            this.Panel2.Controls.Add(this.TxtDienGiai);
            this.Panel2.Controls.Add(this.Label7);
            this.Panel2.Controls.Add(this.TxtDoiTuong);
            this.Panel2.Controls.Add(this.Label6);
            this.Panel2.Controls.Add(this.TxtChungTuGoc);
            this.Panel2.Controls.Add(this.Label9);
            this.Panel2.Controls.Add(this.TxtTimSoChungTu);
            this.Panel2.Controls.Add(this.TxtSoTien);
            this.Panel2.Controls.Add(this.TxtSoTienNT);
            this.Panel2.Controls.Add(this.Label5);
            this.Panel2.Dock = DockStyle.Bottom;
            point = new Point(0, 0x1fb);
            this.Panel2.Location = point;
            this.Panel2.Name = "Panel2";
            size = new Size(0x37e, 0x3e);
            this.Panel2.Size = size;
            this.Panel2.TabIndex = 0x19;
            this.Label8.AutoSize = true;
            this.Label8.BackColor = Color.Transparent;
            point = new Point(0x199, 0x1d);
            this.Label8.Location = point;
            this.Label8.Name = "Label8";
            size = new Size(0x43, 13);
            this.Label8.Size = size;
            this.Label8.TabIndex = 0x6a;
            this.Label8.Text = "Lọc diễn giải";
            point = new Point(0x19c, 6);
            this.TxtDienGiai.Location = point;
            this.TxtDienGiai.Name = "TxtDienGiai";
            size = new Size(480, 20);
            this.TxtDienGiai.Size = size;
            this.TxtDienGiai.TabIndex = 0x69;
            this.Label7.AutoSize = true;
            this.Label7.BackColor = Color.Transparent;
            point = new Point(0xd0, 0x1d);
            this.Label7.Location = point;
            this.Label7.Name = "Label7";
            size = new Size(0x49, 13);
            this.Label7.Size = size;
            this.Label7.TabIndex = 0x68;
            this.Label7.Text = "Lọc đối tượng";
            point = new Point(210, 6);
            this.TxtDoiTuong.Location = point;
            this.TxtDoiTuong.Name = "TxtDoiTuong";
            size = new Size(0xc4, 20);
            this.TxtDoiTuong.Size = size;
            this.TxtDoiTuong.TabIndex = 0x67;
            this.Label6.AutoSize = true;
            this.Label6.BackColor = Color.Transparent;
            point = new Point(0x67, 0x1d);
            this.Label6.Location = point;
            this.Label6.Name = "Label6";
            size = new Size(0x5b, 13);
            this.Label6.Size = size;
            this.Label6.TabIndex = 0x66;
            this.Label6.Text = "Lọc chứng từ gốc";
            point = new Point(0x6a, 6);
            this.TxtChungTuGoc.Location = point;
            this.TxtChungTuGoc.Name = "TxtChungTuGoc";
            size = new Size(0x62, 20);
            this.TxtChungTuGoc.Size = size;
            this.TxtChungTuGoc.TabIndex = 0x65;
            this.Label9.AutoSize = true;
            this.Label9.BackColor = Color.Transparent;
            point = new Point(4, 0x1d);
            this.Label9.Location = point;
            this.Label9.Name = "Label9";
            size = new Size(0x54, 13);
            this.Label9.Size = size;
            this.Label9.TabIndex = 100;
            this.Label9.Text = "Lọc số chứng từ";
            point = new Point(3, 6);
            this.TxtTimSoChungTu.Location = point;
            this.TxtTimSoChungTu.Name = "TxtTimSoChungTu";
            size = new Size(0x62, 20);
            this.TxtTimSoChungTu.Size = size;
            this.TxtTimSoChungTu.TabIndex = 0x63;
            this.TxtSoTien.BorderStyle = BorderStyle.FixedSingle;
            this.TxtSoTien.FormatType = FormatTypeEnum.StandardNumber;
            point = new Point(0x315, 0x25);
            this.TxtSoTien.Location = point;
            this.TxtSoTien.Name = "TxtSoTien";
            padding = new Padding(1);
            this.TxtSoTien.Padding = padding;
            this.TxtSoTien.ReadOnly = true;
            size = new Size(0x60, 20);
            this.TxtSoTien.Size = size;
            this.TxtSoTien.TabIndex = 0x5e;
            this.TxtSoTien.Tag = null;
            this.TxtSoTien.TextAlign = HorizontalAlignment.Right;
            this.TxtSoTien.VisibleButtons = DropDownControlButtonFlags.None;
            this.TxtSoTien.VisualStyle = C1.Win.C1Input.VisualStyle.Office2007Blue;
            this.TxtSoTien.VisualStyleBaseStyle = C1.Win.C1Input.VisualStyle.Office2007Blue;
            this.TxtSoTienNT.BorderStyle = BorderStyle.FixedSingle;
            this.TxtSoTienNT.FormatType = FormatTypeEnum.StandardNumber;
            point = new Point(0x2b1, 0x25);
            this.TxtSoTienNT.Location = point;
            this.TxtSoTienNT.Name = "TxtSoTienNT";
            padding = new Padding(1);
            this.TxtSoTienNT.Padding = padding;
            this.TxtSoTienNT.ReadOnly = true;
            size = new Size(0x60, 20);
            this.TxtSoTienNT.Size = size;
            this.TxtSoTienNT.TabIndex = 0x5d;
            this.TxtSoTienNT.Tag = null;
            this.TxtSoTienNT.TextAlign = HorizontalAlignment.Right;
            this.TxtSoTienNT.VisibleButtons = DropDownControlButtonFlags.None;
            this.TxtSoTienNT.VisualStyle = C1.Win.C1Input.VisualStyle.Office2007Blue;
            this.TxtSoTienNT.VisualStyleBaseStyle = C1.Win.C1Input.VisualStyle.Office2007Blue;
            this.Label5.AutoEllipsis = true;
            this.Label5.AutoSize = true;
            this.Label5.BackColor = Color.Transparent;
            this.Label5.Font = new Font("Microsoft Sans Serif", 8.25f, FontStyle.Bold, GraphicsUnit.Point, 0xa3);
            point = new Point(0x264, 40);
            this.Label5.Location = point;
            this.Label5.Name = "Label5";
            this.Label5.RightToLeft = RightToLeft.No;
            size = new Size(0x44, 13);
            this.Label5.Size = size;
            this.Label5.TabIndex = 0x5c;
            this.Label5.Text = "Tổng cộng";
            this.Label5.TextAlign = ContentAlignment.TopRight;
            this.CboDonVi.DropDownStyle = ComboBoxStyle.DropDownList;
            this.CboDonVi.FormattingEnabled = true;
            point = new Point(0x144, 2);
            this.CboDonVi.Location = point;
            this.CboDonVi.Name = "CboDonVi";
            size = new Size(0xc2, 0x15);
            this.CboDonVi.Size = size;
            this.CboDonVi.TabIndex = 0x42;
            this.CboLoaiDoiTuong.DropDownStyle = ComboBoxStyle.DropDownList;
            this.CboLoaiDoiTuong.FormattingEnabled = true;
            point = new Point(0x20c, 2);
            this.CboLoaiDoiTuong.Location = point;
            this.CboLoaiDoiTuong.Name = "CboLoaiDoiTuong";
            size = new Size(0x7e, 0x15);
            this.CboLoaiDoiTuong.Size = size;
            this.CboLoaiDoiTuong.TabIndex = 0x43;
            SizeF ef = new SizeF(6f, 13f);
            this.AutoScaleDimensions = ef;
            this.AutoScaleMode = AutoScaleMode.Font;
            size = new Size(0x37e, 0x239);
            this.ClientSize = size;
            this.Controls.Add(this.CboLoaiDoiTuong);
            this.Controls.Add(this.CboDonVi);
            this.Controls.Add(this.VSlist);
            this.Controls.Add(this.Panel1);
            this.Controls.Add(this.ToolStrip1);
            this.Controls.Add(this.Panel2);
            this.FormBorderStyle = FormBorderStyle.FixedDialog;
            this.KeyPreview = true;
            this.MinimizeBox = false;
            this.Name = "Frm_PhieuChiList";
            this.ShowIcon = false;
            this.StartPosition = FormStartPosition.CenterScreen;
            this.Tag = "NV-0002";
            this.Text = "DANH SACH PHIEU CHI";
            this.VSlist.EndInit();
            this.Panel1.ResumeLayout(false);
            this.Panel1.PerformLayout();
            this.ToolStrip1.ResumeLayout(false);
            this.ToolStrip1.PerformLayout();
            this.Panel2.ResumeLayout(false);
            this.Panel2.PerformLayout();
            ((ISupportInitialize) this.TxtSoTien).EndInit();
            ((ISupportInitialize) this.TxtSoTienNT).EndInit();
            this.ResumeLayout(false);
            this.PerformLayout();
        }

        public void LoadData()
        {
            this.objData = new DataView(this.objPT.GetListTimKiem(Conversions.ToString(this.CboDonVi.SelectedValue), LVYModule.Date2Char(this.TxtTuNgay.Text), LVYModule.Date2Char(this.TxtDenNgay.Text), "PC", this.AdvTaiKhoan.Value, this.AdvDoiTuong.Value, Conversions.ToString(LVYModule.ReturnIfNull(RuntimeHelpers.GetObjectValue(this.CboKhoanMucChiPhi.SelectedValue), "", modGeneral.TypeOfValue.String))));
            this.VSlist.DataSource = this.objData;
            this.VSlist.Cols[0].Visible = false;
            this.VSlist.Cols[1].Width = 100;
            this.VSlist.Cols[2].Width = 100;
            this.VSlist.Cols[3].Width = 80;
            this.VSlist.Cols[4].Width = 100;
            this.VSlist.Cols[5].Width = 100;
            this.VSlist.Cols[6].Width = 150;
            this.VSlist[0, 1] = modGeneral.Tranlated("Số chứng từ", "");
            this.VSlist[0, 2] = modGeneral.Tranlated("Ng\x00e0y chứng từ", "");
            this.VSlist[0, 3] = modGeneral.Tranlated("Chứng từ gốc", "");
            this.VSlist[0, 4] = modGeneral.Tranlated("Số tiền", "");
            this.VSlist[0, 5] = modGeneral.Tranlated("Quy đổi", "");
            this.VSlist[0, 6] = modGeneral.Tranlated("Đối tượng", "");
            this.VSlist[0, 7] = modGeneral.Tranlated("Diễn giải", "");
            this.VSlist.Cols[4].DataType = System.Type.GetType("Decimal");
            this.VSlist.Cols[4].Format = "#,##0.00";
            this.VSlist.Cols[5].DataType = System.Type.GetType("Decimal");
            this.VSlist.Cols[5].Format = "#,###";
            this.VSlist.Styles.Alternate.BackColor = ProfessionalColors.ToolStripGradientMiddle;
            this.VSlist.Cols[this.VSlist.Cols.Count - 1].Visible = false;
            this.TxtSoTienNT.Value = LVYModule.SumColGrid(this.VSlist, 4);
            this.TxtSoTien.Value = LVYModule.SumColGrid(this.VSlist, 5);
        }

        public void SetLanguage()
        {
             IEnumerator enumerator=null;
             IEnumerator enumerator2=null;
            try
            {
                enumerator = this.Panel1.Controls.GetEnumerator();
                while (enumerator.MoveNext())
                {
                    object objectValue = RuntimeHelpers.GetObjectValue(enumerator.Current);
                    if (Strings.Left(Conversions.ToString(NewLateBinding.LateGet(objectValue, null, "Name", new object[0], null, null, null)), 3).ToUpper() == "CMD")
                    {
                        NewLateBinding.LateSet(objectValue, null, "Text", new object[] { modGeneral.Tranlated(Conversions.ToString(NewLateBinding.LateGet(objectValue, null, "text", new object[0], null, null, null)), "") }, null, null);
                    }
                    if (Strings.Left(Conversions.ToString(NewLateBinding.LateGet(objectValue, null, "Name", new object[0], null, null, null)), 3).ToUpper() == "LAB")
                    {
                        NewLateBinding.LateSet(objectValue, null, "Text", new object[] { modGeneral.Tranlated(Conversions.ToString(NewLateBinding.LateGet(objectValue, null, "text", new object[0], null, null, null)), "") }, null, null);
                    }
                }
            }
            finally
            {
                if (enumerator is IDisposable)
                {
                    (enumerator as IDisposable).Dispose();
                }
            }
            try
            {
                enumerator2 = this.ToolStrip1.Items.GetEnumerator();
                while (enumerator2.MoveNext())
                {
                    object instance = RuntimeHelpers.GetObjectValue(enumerator2.Current);
                    if (Strings.Left(Conversions.ToString(NewLateBinding.LateGet(instance, null, "Name", new object[0], null, null, null)), 3).ToUpper() == "CMD")
                    {
                        NewLateBinding.LateSet(instance, null, "Text", new object[] { modGeneral.Tranlated(Conversions.ToString(NewLateBinding.LateGet(instance, null, "text", new object[0], null, null, null)), "") }, null, null);
                    }
                    if (Strings.Left(Conversions.ToString(NewLateBinding.LateGet(instance, null, "Name", new object[0], null, null, null)), 3).ToUpper() == "LAB")
                    {
                        NewLateBinding.LateSet(instance, null, "Text", new object[] { modGeneral.Tranlated(Conversions.ToString(NewLateBinding.LateGet(instance, null, "text", new object[0], null, null, null)), "") }, null, null);
                    }
                }
            }
            finally
            {
                if (enumerator2 is IDisposable)
                {
                    (enumerator2 as IDisposable).Dispose();
                }
            }
            this.Text = modGeneral.Tranlated(this.Text, "");
            LVYModule.SetTitleGrid(this.VSlist);
        }

        public void setUserRight()
        {
            this.CmdAdd.Enabled = this.mAllowEdit;
            this.CmdDel.Enabled = this.mAllowDel;
        }

        private void TxtChungTuGoc_TextChanged(object sender, EventArgs e)
        {
            string str = "";
            if (this.TxtChungTuGoc.Text.Trim() != "")
            {
                str = " ChungTuDinhKem LIKE '%" + this.TxtChungTuGoc.Text.Trim() + "%'";
            }
            this.objData.RowFilter = str;
            this.VSlist.Cols[this.VSlist.Cols.Count - 1].Width = 100;
            if (this.VSlist.Rows.Count != 1)
            {
                this.VSlist.Select(1, 0, 1, this.VSlist.Cols.Count - 1);
            }
        }

        private void TxtDienGiai_TextChanged(object sender, EventArgs e)
        {
            string str = "";
            if (this.TxtDienGiai.Text.Trim() != "")
            {
                str = " DienGiai LIKE '%" + this.TxtDienGiai.Text.Trim() + "%'";
            }
            this.objData.RowFilter = str;
            this.VSlist.Cols[this.VSlist.Cols.Count - 1].Width = 100;
            if (this.VSlist.Rows.Count != 1)
            {
                this.VSlist.Select(1, 0, 1, this.VSlist.Cols.Count - 1);
            }
        }

        private void TxtDoiTuong_TextChanged(object sender, EventArgs e)
        {
            string str = "";
            if (this.TxtDoiTuong.Text.Trim() != "")
            {
                str = " TenDoiTuong LIKE '%" + this.TxtDoiTuong.Text.Trim() + "%'";
            }
            this.objData.RowFilter = str;
            this.VSlist.Cols[this.VSlist.Cols.Count - 1].Width = 100;
            if (this.VSlist.Rows.Count != 1)
            {
                this.VSlist.Select(1, 0, 1, this.VSlist.Cols.Count - 1);
            }
        }

        private void TxtTimSoChungTu_TextChanged(object sender, EventArgs e)
        {
            string str = "";
            if (this.TxtTimSoChungTu.Text.Trim() != "")
            {
                str = " SoChungTu LIKE '%" + this.TxtTimSoChungTu.Text.Trim() + "%'";
            }
            this.objData.RowFilter = str;
            this.VSlist.Cols[this.VSlist.Cols.Count - 1].Width = 100;
            if (this.VSlist.Rows.Count != 1)
            {
                this.VSlist.Select(1, 0, 1, this.VSlist.Cols.Count - 1);
            }
        }

        private void TxtTuNgay_LostFocus(object sender, EventArgs e)
        {
            if (LVYModule.sRight(this.TxtTuNgay.Text, 7) != LVYModule.sRight(this.TxtDenNgay.Text, 7))
            {
                this.TxtDenNgay.Text = DateTime.DaysInMonth(Conversions.ToInteger(LVYModule.sRight(this.TxtTuNgay.Text, 4)), Conversions.ToInteger(LVYModule.sMid(this.TxtTuNgay.Text, 4, 2))).ToString() + "/" + LVYModule.sRight(this.TxtTuNgay.Text, 7);
            }
        }

        private void VSlist_DoubleClick(object sender, EventArgs e)
        {
            if ((this.VSlist.Rows.Count != 1) && (this.VSlist.Row > 0))
            {
                MyProject.Forms.Frm_PhieuChi.Dispose();
                MyProject.Forms.Frm_PhieuChi.cFrmKhoa = Conversions.ToString(this.VSlist[this.VSlist.Row, 0]);
                MyProject.Forms.Frm_PhieuChi.Show();
            }
        }

        internal virtual ADVObjects AdvDoiTuong
        {
            [DebuggerNonUserCode]
            get
            {
                return this._AdvDoiTuong;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._AdvDoiTuong = value;
            }
        }

        internal virtual ADVAccount AdvTaiKhoan
        {
            [DebuggerNonUserCode]
            get
            {
                return this._AdvTaiKhoan;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._AdvTaiKhoan = value;
            }
        }

        internal virtual ComboBox CboDonVi
        {
            [DebuggerNonUserCode]
            get
            {
                return this._CboDonVi;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._CboDonVi = value;
            }
        }

        internal virtual ComboBox CboKhoanMucChiPhi
        {
            [DebuggerNonUserCode]
            get
            {
                return this._CboKhoanMucChiPhi;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._CboKhoanMucChiPhi = value;
            }
        }

        internal virtual ComboBox CboLoaiDoiTuong
        {
            [DebuggerNonUserCode]
            get
            {
                return this._CboLoaiDoiTuong;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                EventHandler handler = new EventHandler(this.CboLoaiDoiTuong_SelectedIndexChanged);
                if (this._CboLoaiDoiTuong != null)
                {
                    this._CboLoaiDoiTuong.SelectedIndexChanged -= handler;
                }
                this._CboLoaiDoiTuong = value;
                if (this._CboLoaiDoiTuong != null)
                {
                    this._CboLoaiDoiTuong.SelectedIndexChanged += handler;
                }
            }
        }

        internal virtual ToolStripButton CmdAdd
        {
            [DebuggerNonUserCode]
            get
            {
                return this._CmdAdd;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                EventHandler handler = new EventHandler(this.CmdAdd_Click);
                if (this._CmdAdd != null)
                {
                    this._CmdAdd.Click -= handler;
                }
                this._CmdAdd = value;
                if (this._CmdAdd != null)
                {
                    this._CmdAdd.Click += handler;
                }
            }
        }

        internal virtual ToolStripButton CmdDel
        {
            [DebuggerNonUserCode]
            get
            {
                return this._CmdDel;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                EventHandler handler = new EventHandler(this.CmdDel_Click);
                if (this._CmdDel != null)
                {
                    this._CmdDel.Click -= handler;
                }
                this._CmdDel = value;
                if (this._CmdDel != null)
                {
                    this._CmdDel.Click += handler;
                }
            }
        }

        internal virtual ToolStripButton CmdExit
        {
            [DebuggerNonUserCode]
            get
            {
                return this._CmdExit;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._CmdExit = value;
            }
        }

        internal virtual ToolStripButton CmdHelp
        {
            [DebuggerNonUserCode]
            get
            {
                return this._CmdHelp;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                EventHandler handler = new EventHandler(this.CmdHelp_Click);
                if (this._CmdHelp != null)
                {
                    this._CmdHelp.Click -= handler;
                }
                this._CmdHelp = value;
                if (this._CmdHelp != null)
                {
                    this._CmdHelp.Click += handler;
                }
            }
        }

        internal virtual ToolStripDropDownButton CmdPrint
        {
            [DebuggerNonUserCode]
            get
            {
                return this._CmdPrint;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._CmdPrint = value;
            }
        }

        internal virtual ToolStripMenuItem CmdPrintChiTiet
        {
            [DebuggerNonUserCode]
            get
            {
                return this._CmdPrintChiTiet;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                EventHandler handler = new EventHandler(this.CmdPrintChiTiet_Click);
                if (this._CmdPrintChiTiet != null)
                {
                    this._CmdPrintChiTiet.Click -= handler;
                }
                this._CmdPrintChiTiet = value;
                if (this._CmdPrintChiTiet != null)
                {
                    this._CmdPrintChiTiet.Click += handler;
                }
            }
        }

        internal virtual ToolStripMenuItem CmdPrintTongHop
        {
            [DebuggerNonUserCode]
            get
            {
                return this._CmdPrintTongHop;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                EventHandler handler = new EventHandler(this.CmdPrintTongHop_Click);
                if (this._CmdPrintTongHop != null)
                {
                    this._CmdPrintTongHop.Click -= handler;
                }
                this._CmdPrintTongHop = value;
                if (this._CmdPrintTongHop != null)
                {
                    this._CmdPrintTongHop.Click += handler;
                }
            }
        }

        internal virtual ToolStripButton CmdRefresh
        {
            [DebuggerNonUserCode]
            get
            {
                return this._CmdRefresh;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                EventHandler handler = new EventHandler(this.CmdRefresh_Click);
                if (this._CmdRefresh != null)
                {
                    this._CmdRefresh.Click -= handler;
                }
                this._CmdRefresh = value;
                if (this._CmdRefresh != null)
                {
                    this._CmdRefresh.Click += handler;
                }
            }
        }

        internal virtual Label Label1
        {
            [DebuggerNonUserCode]
            get
            {
                return this._Label1;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._Label1 = value;
            }
        }

        internal virtual Label Label13
        {
            [DebuggerNonUserCode]
            get
            {
                return this._Label13;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._Label13 = value;
            }
        }

        internal virtual Label Label2
        {
            [DebuggerNonUserCode]
            get
            {
                return this._Label2;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._Label2 = value;
            }
        }

        internal virtual Label Label3
        {
            [DebuggerNonUserCode]
            get
            {
                return this._Label3;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._Label3 = value;
            }
        }

        internal virtual Label Label4
        {
            [DebuggerNonUserCode]
            get
            {
                return this._Label4;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._Label4 = value;
            }
        }

        internal virtual Label Label5
        {
            [DebuggerNonUserCode]
            get
            {
                return this._Label5;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._Label5 = value;
            }
        }

        internal virtual Label Label6
        {
            [DebuggerNonUserCode]
            get
            {
                return this._Label6;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._Label6 = value;
            }
        }

        internal virtual Label Label7
        {
            [DebuggerNonUserCode]
            get
            {
                return this._Label7;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._Label7 = value;
            }
        }

        internal virtual Label Label8
        {
            [DebuggerNonUserCode]
            get
            {
                return this._Label8;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._Label8 = value;
            }
        }

        internal virtual Label Label9
        {
            [DebuggerNonUserCode]
            get
            {
                return this._Label9;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._Label9 = value;
            }
        }

        internal virtual Panel Panel1
        {
            [DebuggerNonUserCode]
            get
            {
                return this._Panel1;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._Panel1 = value;
            }
        }

        internal virtual Panel Panel2
        {
            [DebuggerNonUserCode]
            get
            {
                return this._Panel2;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._Panel2 = value;
            }
        }

        internal virtual ToolStrip ToolStrip1
        {
            [DebuggerNonUserCode]
            get
            {
                return this._ToolStrip1;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._ToolStrip1 = value;
            }
        }

        internal virtual ToolStripSeparator ToolStripButton1
        {
            [DebuggerNonUserCode]
            get
            {
                return this._ToolStripButton1;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._ToolStripButton1 = value;
            }
        }

        internal virtual ToolStripLabel ToolStripLabel1
        {
            [DebuggerNonUserCode]
            get
            {
                return this._ToolStripLabel1;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._ToolStripLabel1 = value;
            }
        }

        internal virtual ToolStripSeparator ToolStripSeparator1
        {
            [DebuggerNonUserCode]
            get
            {
                return this._ToolStripSeparator1;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._ToolStripSeparator1 = value;
            }
        }

        internal virtual ToolStripSeparator ToolStripSeparator2
        {
            [DebuggerNonUserCode]
            get
            {
                return this._ToolStripSeparator2;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._ToolStripSeparator2 = value;
            }
        }

        internal virtual ToolStripSeparator ToolStripSeparator3
        {
            [DebuggerNonUserCode]
            get
            {
                return this._ToolStripSeparator3;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._ToolStripSeparator3 = value;
            }
        }

        internal virtual TextBox TxtChungTuGoc
        {
            [DebuggerNonUserCode]
            get
            {
                return this._TxtChungTuGoc;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                EventHandler handler = new EventHandler(this.TxtChungTuGoc_TextChanged);
                if (this._TxtChungTuGoc != null)
                {
                    this._TxtChungTuGoc.TextChanged -= handler;
                }
                this._TxtChungTuGoc = value;
                if (this._TxtChungTuGoc != null)
                {
                    this._TxtChungTuGoc.TextChanged += handler;
                }
            }
        }

        internal virtual DateTimePicker TxtDenNgay
        {
            [DebuggerNonUserCode]
            get
            {
                return this._TxtDenNgay;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._TxtDenNgay = value;
            }
        }

        internal virtual TextBox TxtDienGiai
        {
            [DebuggerNonUserCode]
            get
            {
                return this._TxtDienGiai;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                EventHandler handler = new EventHandler(this.TxtDienGiai_TextChanged);
                if (this._TxtDienGiai != null)
                {
                    this._TxtDienGiai.TextChanged -= handler;
                }
                this._TxtDienGiai = value;
                if (this._TxtDienGiai != null)
                {
                    this._TxtDienGiai.TextChanged += handler;
                }
            }
        }

        internal virtual TextBox TxtDoiTuong
        {
            [DebuggerNonUserCode]
            get
            {
                return this._TxtDoiTuong;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                EventHandler handler = new EventHandler(this.TxtDoiTuong_TextChanged);
                if (this._TxtDoiTuong != null)
                {
                    this._TxtDoiTuong.TextChanged -= handler;
                }
                this._TxtDoiTuong = value;
                if (this._TxtDoiTuong != null)
                {
                    this._TxtDoiTuong.TextChanged += handler;
                }
            }
        }

        internal virtual C1NumericEdit TxtSoTien
        {
            [DebuggerNonUserCode]
            get
            {
                return this._TxtSoTien;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._TxtSoTien = value;
            }
        }

        internal virtual C1NumericEdit TxtSoTienNT
        {
            [DebuggerNonUserCode]
            get
            {
                return this._TxtSoTienNT;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._TxtSoTienNT = value;
            }
        }

        internal virtual TextBox TxtTimSoChungTu
        {
            [DebuggerNonUserCode]
            get
            {
                return this._TxtTimSoChungTu;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                EventHandler handler = new EventHandler(this.TxtTimSoChungTu_TextChanged);
                if (this._TxtTimSoChungTu != null)
                {
                    this._TxtTimSoChungTu.TextChanged -= handler;
                }
                this._TxtTimSoChungTu = value;
                if (this._TxtTimSoChungTu != null)
                {
                    this._TxtTimSoChungTu.TextChanged += handler;
                }
            }
        }

        internal virtual DateTimePicker TxtTuNgay
        {
            [DebuggerNonUserCode]
            get
            {
                return this._TxtTuNgay;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                EventHandler handler = new EventHandler(this.TxtTuNgay_LostFocus);
                if (this._TxtTuNgay != null)
                {
                    this._TxtTuNgay.LostFocus -= handler;
                }
                this._TxtTuNgay = value;
                if (this._TxtTuNgay != null)
                {
                    this._TxtTuNgay.LostFocus += handler;
                }
            }
        }

        internal virtual C1.Win.C1FlexGrid.C1FlexGrid VSlist
        {
            [DebuggerNonUserCode]
            get
            {
                return this._VSlist;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                EventHandler handler = new EventHandler(this.VSlist_DoubleClick);
                if (this._VSlist != null)
                {
                    this._VSlist.DoubleClick -= handler;
                }
                this._VSlist = value;
                if (this._VSlist != null)
                {
                    this._VSlist.DoubleClick += handler;
                }
            }
        }
    }
}

